<template>
	<view>
		<view class="v_content" >
			<view class="v_content_lx" v-html="aboutlist.contact">
			</view>
			<view class="v_content_image">
				<view class="">
					<view class="" style="text-align: center;margin-bottom: 10rpx;">
						{{ $t("message.weixin") }}
					</view>
					<image :src="aboutlist.qrcode.wechat" mode=""></image>
				</view>
				<view class="">
					<view class="" style="text-align: center;margin-bottom: 10rpx;">
						whatsapp
					</view>
					<image :src="aboutlist.qrcode.whatsapp" mode=""></image>
		
				</view>
			</view>
		
			<view class="v_content_about">
				{{aboutlist.about}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				aboutlist: {},
				lang:'ru'
			}
		},
		onShow() {
			if(uni.getStorageSync('lang')=='en'){
				uni.setNavigationBarTitle({
				    title: "Свяжитесь с нами"
				});
				this.lang='ru'
			}else{
				this.lang='zh-cn'
				
			}
			
		},
		onLoad() {
			if(uni.getStorageSync('lang')=='en'){
				this.lang='ru'
			}else{
				this.lang='zh-cn'
				
			}
			this.about()
			
		},
		methods: {
			// 获取关于我们信息
			about() {
				let _this = this
				uni.$u.http.post('/api/index/profile?lang='+_this.lang, {
				}).then(res => {
					res.data.qrcode.wechat = _this.$IMG_URL + '' + res.data.qrcode.wechat
					res.data.qrcode.whatsapp = _this.$IMG_URL + '' + res.data.qrcode.whatsapp
			
					_this.aboutlist = res.data
			
				}).catch(err => {
			
				})
			},
		}
	}
</script>

<style scoped lang="less">
	.v_content {
		margin-top: 40rpx;
		padding: 0 40rpx;
		.v_content_lx {
			font-size: 35rpx;
			font-weight: 400;
			color: #333333;
			line-height: 60rpx;
			text-align: center;
		}

		.v_content_image {
			margin: 40rpx 0;
			display: flex;
			align-items: center;
			justify-content: space-between;

			image {
				width: 300rpx;
				height: 300rpx;
			}
		}

		.v_content_about {
			font-size: 35rpx;
			font-weight: 400;
			color: #333333;
			padding-bottom: 40rpx;
			text-align: center;
			line-height: 55rpx;
		}
	}
</style>
